Skip to main content
请求

curl --location 'https://openapi.gs-robot.com/openapi/v3/maps/schedule-resources/list' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{token}}' \
--data '{
"includePaths": true,
"includePositions": false,
"includeRegions": true,
"mapIdList": [
"140bbb83-fe48-4282-be25-c48252b9c660"
],
"robotSn": "TEST00-0000-000-B088"
}'

版本限制:本接口仅支持 AIO1.6 及以上软件版本。

说明

  • supportedActions 只返回资源动作与当前机器人可用 WorkMode 的交集;没有匹配动作时返回空数组。
  • 除成功码 0 外,接口失败响应使用六位 code。机器人归属、下游调用和参数错误分别按统一错误码规范返回。
输出

{
"code": 0,
"data": {
"maps": [
{
"mapId": "140bbb83-fe48-4282-be25-c48252b9c660",
"paths": [
{
"mapResourceAreaId": "1",
"mapResourceId": "327594d9-df72-4950-94b2-64e6d02abdfb",
"mapResourceName": "area1",
"mapResourceType": "region",
"supportedActions": [
"wash"
]
}
],
"positions": [
{
"mapResourceAreaId": "1",
"mapResourceId": "327594d9-df72-4950-94b2-64e6d02abdfb",
"mapResourceName": "area1",
"mapResourceType": "region",
"supportedActions": [
"wash"
]
}
],
"regions": [
{
"mapResourceAreaId": "1",
"mapResourceId": "327594d9-df72-4950-94b2-64e6d02abdfb",
"mapResourceName": "area1",
"mapResourceType": "region",
"supportedActions": [
"wash"
]
}
],
"robotMapUuid": "140bbb83-fe48-4282-be25-c48252b9c660"
}
],
"robotSn": "TEST00-0000-000-B088",
"workModes": [
{
"configType": "strength",
"defaultStrength": "middle",
"hasStrength": true,
"id": "wm-1",
"mode": "wash",
"recommended": true,
"strengthOptions": [
"middle"
],
"subTaskEnabled": false,
"subType": "wash",
"type": 0
}
]
},
"msg": "success"
}